<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:p="http://primefaces.org/ui">

    <ui:composition>
        <h:form id="login" >
            <p:panel id="loginpanel" rendered="#{!frontController.islogedIn()}" style="padding: 0px; border: 0px" styleClass="none">  
                <p:inputText id="user" value="#{frontController.user.name}"/>
                <p:password id="password" value="#{frontController.user.passhash}" minLength="0" feedback=""/>
                <p:commandButton action="#{frontController.logIn()}" icon="ui-icon-carat-1-e" ajax="false"/>
                <h:outputLink value="profile.xhtml">#{bundle.Register}</h:outputLink>

            </p:panel>
            <p:panel rendered="#{frontController.islogedIn()}">  
                <h:outputLabel value="#{bundle.User} "/><h:outputLabel id="username" value="#{frontController.user.name} "/>
                <h:outputLabel value="#{bundle.Group} "/><h:outputLabel value="#{frontController.user.group.name} "/>
                <h:commandLink action="#{frontController.logOut()}" value="#{bundle.Logout}" /> | <h:outputLink value="profile.xhtml">#{bundle.Profile}</h:outputLink>
            </p:panel>
        </h:form>
    </ui:composition>
</html>